<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-key"></span> 修改学生信息</strong></div>
  <div class="body-content">
    <c:forEach items="${requestScope.student}" var="student">
    <form method="post" class="form-x" action="updateStudent">
      <div class="form-group">
        <div class="label">
          <label for="sitename">学号：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           ${student.sno}
            <input type="hidden" name="sno" value="${student.sno}">
          </label>
        </div>
      </div>      

      <div class="form-group">
        <div class="label">
          <label for="sitename">姓名：</label>
        </div>
        <div class="field">
          <input type="text" class="input " name="sname" value="${student.sname}"
                 placeholder="姓名"  />
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label for="sitename">性别：</label>
        </div>
        <div class="field">
          <input type="text" class="input " name="ssex" value="${student.ssex}"  placeholder="姓名"  />
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label for="sitename">班级：</label>
        </div>
        <div class="field">
          <input type="text" class="input " name="sclass" value="${student.sclass}"  placeholder="班级"  />
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label for="sitename">出生日期：</label>
        </div>
        <div class="field">
          <input type="date" class="input " name="sbirthday" value="${student.sbirthday}"  placeholder="出生日期" />
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label for="sitename">专业：</label>
        </div>
        <div class="field">
          <input type="text" class="input " name="speciality" value="${student.speciality}"  placeholder="专业"  />
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label for="sitename">总分：</label>
        </div>
        <div class="field">   <%--student.tc: student表的tc总分属性--%>
          <input type="number" class="input " name="tc" value="${student.tc}"  placeholder="总分"  />
        </div>
      </div>

      <%--

     private String sno;//学号
    private String sname;//姓名
    private String ssex;//性别
    private String sclass;//班级号
    private Date sbirthday;//出生日期  import java.sql.Date;  until
    private String speciality;//特长，专业
    private int tc;//总分
      --%>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>   
        </div>
      </div>      
    </form>
    </c:forEach>

  </div>
</div>
</body></html>